
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>添加</title>
    <link rel="stylesheet" href="../css/login.css"/>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">

</head>


<style>
    body{
        background-image: url("../images/w3.jpg");
        background-size:contain;
        background-size:cover;
        background-repeat:no-repeat;
    }
    table
    {
        border-collapse:collapse;
    }
    table, td
    {
        border:1px solid green;
    }
    td
    {
        padding:15px;
    }

</style>
<body >
<div align="center">
    <h1>课程年级添加</h1>
    <form  name="form" method="post" action="addlg"  onsubmit="return userCheck()" >
        <table>
            <tr>
                <td>打算任教年级:</td>
                <td><input type="text" name="tgrade" placeholder="打算任教年级"/></td>
            </tr>
            <tr>
                <td colspan="2" align="center"><input type="submit" value="提交"/></td>
            </tr>

        </table>

    </form>
</div>
<script type="text/javascript">
    function userCheck(){
        if(document.form.tgrade.value==""){
            window.alert("请输入打算任教年级");
            return false;
        }

        return true;
    }
</script>

</body>
</html>